<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>绩效考核系统</title>
<link href="styles/core.css" rel="stylesheet" type="text/css">
<link href="styles/Master.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="scripts/common.js"></script>

<script type="text/javascript" src="scripts/system/job.js"></script>

<style>
.tabHeader1 {
	border-left: 1px solid #a2b8d0;
	border-top: 1px solid #a2b8d0;
}

.tabHeader1 td {
	height: 21px;
	border-right: 1px solid #a2b8d0;
	border-bottom: 1px solid #a2b8d0;
	color: #323230;
	padding-left: 1px;
	padding-right: 1px;
	word-wrap: break-word;
	word-break:break-all;
}
</style>

<script>

</script>

</head>

<body>

<form name="jobForm" method="post" onsubmit="return false;">

	<s:hidden id="jobId" name="job.jobId"></s:hidden>
	<s:hidden name="pagerEntity.pageInfo.pageNow" id="pageNow"></s:hidden>
	<h2 style="text-align: left">岗位列表</h2>

	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td align="right" width="100%" rowspan="2">
				<input type="image" src="<%=basePath%>images/search.jpg" onclick="search();"></input>
				<input type="image" src="<%=basePath%>images/add.jpg" onclick="add();"></input>
			</td>
		</tr>
	</table>

	<hr width="100%" align="left" size="1" color="#E1EEF8">

	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabHeader1" id="dataInfo" style="table-layout:fixed">
		<thead>
			<tr align="center" class="tdBg">
				<td style="text-align: center" nowrap="nowrap" width="20%">岗位名称</td>
				<td style="text-align: center" nowrap="nowrap" width="70%">备注</td>
				<td style="text-align: center" nowrap="nowrap" width="10%">操作</td>
			</tr>
		</thead>
		<tbody>
			<s:if test="#request.pagerEntity.resultList.size==0">
		   		<tr>
		   			<td colspan="9" align="center">
		   				对不起！没有搜索到结果......
		   			</td>
		   		</tr>
		   	</s:if>
		   	<s:else>

				<s:set id="total" value="0"></s:set>
			    <s:set id="totalSum" value="0"></s:set>

				<s:iterator value="pagerEntity.resultList" id="job">
					<tr>
						<td valign="top">
							<s:property value="#job.jobName"/>
						</td>
						<td style="height:100%;">
							<s:property value="#job.remark" escape="false"/>
						</td>
						<td nowrap="nowrap" align="center">
							<a href="javascript: void(0);" onclick="modify(<s:property value="#job.jobId"/>); return false;">
								<img src="images/update.jpg" style="vertical-align: middle" border="0">修改
							</a>
				    		<a href="javascript: void(0);" onclick="deleteJob(<s:property value="#job.jobId"/>); return false;">
								<img src="images/delete.jpg" style="vertical-align: middle" border="0">删除&nbsp;&nbsp;
							</a>
						</td>
					</tr>
				</s:iterator>
				<tr class="tdBg">
					<td colspan="7" align="right">
						<s:include value="/pages/pagefooter.jsp"></s:include>
					</td>
				</tr>
			</s:else>
		</tbody>
	</table>

</form>

<div id="waiting" style="display: none;">
	<div id="background" class="background"></div>
	<div id="progressBar" class="progressBar">数据加载中，请稍等...</div>
</div>
</body>
</html>